READ FLOAT
This command will read a float from the file and store it as a real value in the real variable specified.
READ FLOAT File Number, Variable
File Number
Integer
The file specified by the file number must be open or the command will fail
Variable
Float
Will read a float from the file and store it as a real value in the real variable specified
This command does not return a value.
The file specified by the file number must be open or the command will fail.
cls
open to read 1,"data.dat"
if file open(1)=1
read float 1,a#
print "value = "+str$(a#)
endif
close file 1
do
loop
end
FILE Commands Menu
Index